package com.ranqianhui.ojbackendjudgeservice.controller.internal;

import com.ranqianhui.ojbackendjudgeservice.JudgeService;
import com.ranqianhui.ojbackendmodel.model.entity.QuestionSubmit;
import com.ranqianhuii.ojbackendserviceclient.service.JudgeClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/inner")
public class JudgeControllerInner implements JudgeClient {

    private JudgeService judgeService;
    public QuestionSubmit doJudge(Long questionSubmitId) {
        QuestionSubmit questionSubmit = judgeService.doJudge(questionSubmitId);
        return questionSubmit;
    }
}
